package pressepapier;
import TasDePapiers.TasDePapiers;
import Debog.Debog;

public class PressePapierText extends Debog implements TasDePapiers
{

        private String clip;
        private boolean poped;
        public PressePapierText(){
                clip = "";
                poped=false;
        }

        public void push( String t )
        {       debog("push:"+t);
                if (poped){clip="";poped=false;}
                clip=clip+t;
        }
        public String popAll()
        {       debog("popAll");
                poped=true;
                String ret=clip;
          return ret;
        }

		public void pushreset() {
			poped=true;
		}


 }

